using System;
using UI.Models.Catalog;

namespace UI.Controllers
{
    public class CategoryMapper
    {
        public Category From(Core.Model.Category category)
        {
            if (category == null) throw new ArgumentNullException("category");
            return new Category() {Name = category.Name};
        }
    }
}